package com.shuda.business.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuda.business.crm.entity.CustomerTransferEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 客户转移记录Mapper接口
 * @author shuda
 */
@Mapper
public interface CustomerTransferMapper extends BaseMapper<CustomerTransferEntity> {

    /**
     * 根据客户ID分页查询转移记录
     * @param page 分页对象
     * @param customerId 客户ID
     * @return 分页结果
     */
    IPage<CustomerTransferEntity> selectPageByCustomerId(Page<CustomerTransferEntity> page, @Param("customerId") Long customerId);

    /**
     * 根据转移状态分页查询
     * @param page 分页对象
     * @param transferStatus 转移状态
     * @return 分页结果
     */
    IPage<CustomerTransferEntity> selectPageByStatus(Page<CustomerTransferEntity> page, @Param("transferStatus") String transferStatus);
}